<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script setup>
import { ref, provide, nextTick } from "vue";

// 定义响应式数据
const isRefresh = ref(true);

// 定义方法
const reload = () => {
  isRefresh.value = false;
  nextTick(() => {
    isRefresh.value = true;
  });
};

// 提供依赖
provide("reload", reload);
provide("VersionNo", process.env.version);
</script>

<style lang="scss">
body,
html,
#app {
  width: 100%;
  height: 100%;
}
</style>
